<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8" />
<Title><?php echo $site_title;?></Title>
<link href="{tpl_path}style/login_style.css" rel="stylesheet" />
<script type="text/javascript" src="{root_path}js/validator.js"></script>
<script type="text/javascript" src="{tpl_path}js/function.js"></script>
<script language="javascript">
	var js_root_path="<?php echo site_url('/');?>";
	window.onload = function(){
		document.getElementById('user_name').focus();
		get_validate_code('Captcha');
	}
</script>
</head>
<body>
<div class="bg">
  <div style="padding-top:100px; width:228px; margin:0 auto;">
    <form Name="loginform" id="loginform" method="post" action="<?php echo site_url(CTL_FOLDER."login/check_login"); ?>" onsubmit="return Validator.Validate(this,2)">
      <table width="228" border="0" cellpadding="0" cellspacing="0" background="{tpl_path}images/login-bg.gif" style="position:relative">
        <tr>
          <td width="79" height="32"></td>
          <td height="32" colspan="2"><input name="user_name" id="user_name" type="text" class="login-kk01" dataType="Require" msg="管理员账号必填" maxlength="100"/></td>
        </tr>
        <tr>
          <td height="7" colspan="3"></td>
        </tr>
        <tr>
          <td width="79" height="32"></td>
          <td height="32" colspan="2"><input name="password" type="password" class="login-kk01" dataType="Require" msg="管理员密码必填" maxlength="100"/></td>
        </tr>
        <tr>
          <td height="7" colspan="3"></td>
        </tr>
        <tr>
          <td width="79" height="32"></td>
          <td width="50" align="center"><input name="validate_code" maxlength="4" type="text" class="login-kk02" dataType="Require" msg="验证码必填"/></td>
          <td width="99" align="center"><span id="Captcha"></span></td>
        </tr>
      </table>
      <table width="228" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="58" align="left" valign="bottom"><div style="padding-left:53px">
              <input type="image" src="{tpl_path}images/bat-login.gif" title="登录" alt="登录" width="124" height="45" />
              <a href="javascript:document.loginform.reset();"><img src="{tpl_path}images/bat-login2.gif" alt="重置" title="重置" width="36" height="45" /></a></div></td>
        </tr>
      </table>
    </form>
  </div>
  <div id="bottom"><a href="<?php echo site_url('/');?>">前台首页</a> | <a href="<?php echo site_url(CTL_FOLDER."login/find_password");?>">找回管理员密码</a> | <?php echo APP_POWER;?></div>
</div>
</body>
</html>
